﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PC.AzureMultiApp.Storage;
using PC.AzureMultiApp.Core;
using PC.AzureMultiApp.Core.Applications;
using PC.AzureMultiApp.WebRoleMultiApp.Helpers;

namespace PC.AzureMultiApp.WebRoleMultiApp.Controllers
{
    [ValidaAdminRole()]  
    public class DeleteController : Controller
    {
        public ActionResult Delete(string id)
        {
            Applications.Delete(id);

            return RedirectToAction("Application", "Application");
        }
    }
}
